
from pages.MessagePage import MessagePage
from  TestBase import TestBase
from ddt import ddt,data
from data.Ddt_data import Ddt_data

@ddt
class Message(TestBase):
    '''消息'''
    @data(* Ddt_data.my_data('./data/消息.xlsx','消息'))#路径、excel名字、sheet页名称
    def test_message_success(self,data):
        '''消息'''
        MessagePage(self.driver).message_success(txt=data['xiaoxi'])

    def test_send_photo(self):
        '''拍照发'''
        MessagePage(self.driver).send_photo()


